import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '查询'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    confirmor: {
        url: '/:id/confirmor',
        title: formatMessage({
            id: 'routes.operation.confirmor',
            defaultMessage: '确认'
        }),
        format: '/{0}/confirmor'
    },
    close: {
        url: '/:id/close',
        title: formatMessage({
            id: 'routes.operation.close',
            defaultMessage: '关闭'
        }),
        format: '/{0}/close'
    },
    confirmorAll: {
        url: '/confirmorAll',
        title: formatMessage({
            id: 'routes.operation.confirmorAll',
            defaultMessage: '批量确认'
        }),
        format: '/confirmorAll'
    },
    closeAll: {
        url: '/closeAll',
        title: formatMessage({
            id: 'routes.operation.closeAll',
            defaultMessage: '批量关闭'
        }),
        format: '/closeAll'
    },
    approve: {
        url: '/approve',
        title: formatMessage({
            id: 'routes.operation.approve',
            defaultMessage: '批量审核'
        }),
        format: '/approve'
    },
    import: {
        url: '/import',
        title: formatMessage({
            id: 'routes.operation.import',
            defaultMessage: '预计到货信息导入'
        }),
        format: '/import'
    }
});

export default routes;
